package net;

public class ReceiverThread {
	private static Thread receiverThread = null;
	private static boolean isRunning = false;

	public static void createReceiverThread() {
		receiverThread = new Thread(new Receiver());
	}

	public static void startReceiverThread() {
		if (!isRunning) {
			receiverThread.start();
			isRunning = true;
		}
	}

	public static void stopReceiverThread() {
		receiverThread.stop();
		isRunning = false;
	}
}
